#include <iostream>

using namespace std;

class Draw{
private:
    int height;
public:
    Draw(int height){
      this->height=height;
    }

    void sanjiaoxing(){
    for(int i=0;i<height;i++){
        for(int j=0;j<=i;j++){
           cout<<"*";
        }
        cout<<endl;
      }
    }

    void juxing(){
    for(int i=0;i<height;i++){
        for(int j=0;j<height;j++){
            cout<<"*";
        }
        cout<<endl;
      }
    }

    void pingxingsibianxing(){
    for(int i=0;i<height;i++){
        for(int j=0;j<i;j++){
            cout<<" ";
        }
        for(int k=0;k<height;k++){
            cout<<"*";
        }
            cout<<endl;
    }
    }
};
int main()
{
    Draw draw(4);
    draw.sanjiaoxing();
    cout<<endl;
    draw.juxing();
    cout<<endl;
    draw.pingxingsibianxing();
    return 0;
}
